package com.baiduspring.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * ES相关配置
 */
@Component
@Data
@PropertySource(value = {"classpath:elasticseach.properties"}, encoding = "utf-8")
public class ElasticSearchConfig {
    @Value("${es.inet.address}")
    private String address;
    @Value("${es.es.inet.address.port}")
    private Integer port;
    @Value("${es.query.analyzer}")
    private String analyzer;
    @Value("${es.highlight.color}")
    private String highlightColor;
}
